<style>
    #baseAreaScheduling-edit .layui-col-md4{
        width: 30%;
    }
</style>
<body class="layui-layout-body" style="overflow: auto">
<div class="layui-fluid" id="baseAreaScheduling-edit">
    <form class="layui-form" action="" lay-filter="baseAreaScheduling-edit-form">
        <div class="layui-card">
            <blockquote class="layui-elem-quote layui-elem-quote-primary">区域信息</blockquote>
            <div class="layui-field-box">
                <div class="layui-form-item febs-hide">
                    <label class="layui-form-label febs-form-item-require">id：</label>
                    <div class="layui-input-block">
                        <input type="text" name="areaSchedulingId" class="layui-input">
                    </div>
                </div>

                <div class="layui-form-item febs-hide">
                    <label class="layui-form-label febs-form-item-require">管理公司：</label>
                    <div class="layui-input-block">
                        <input type="text" name="tenantId" id="tenantId" autocomplete="off" class="layui-input"
                               maxlength="32">
                    </div>
                </div>
                <div id="editView" th:if="${baseArea}">
                    <div class="layui-form-item">
                        <div class="layui-col-md6">
                            <label class="layui-form-label layui-form-label-detail">区域名称：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${baseArea.areaName}"></div>
                        </div>
                        <div class="layui-col-md6">
                            <label class="layui-form-label layui-form-label-detail">区域类型：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${baseArea.areaType} =='1'? '内场区域':'项目区域'"></div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-col-md6">
                            <label class="layui-form-label layui-form-label-detail">区域排序：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${baseArea.sort}"></div>
                        </div>
                        <div class="layui-col-md6">
                            <label class="layui-form-label layui-form-label-detail">区域状态：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${baseArea.status} =='1'? '启用':'停用'"></div>
                        </div>
                    </div>
                </div>
                <div id="addView" th:if="!${baseArea }">
                    <div class="layui-form-item">
                        <div class="layui-col-md6">
                            <label class="layui-form-label layui-form-label-sm  febs-form-item-require ">区域名称：</label>
                            <div class="layui-input-inline" th>
                                <select name="areaId" id="areaId" lay-filter="areaId" lay-search="" lay-verify="required">
                                    <option value="">请选择区域</option>
                                    <option th:each="item:${areaList }"
                                            th:value="${item.areaId}" th:text="${item.areaName}">
                                </select>
                            </div>
                        </div>
                        <div class="layui-col-md6">
                            <label class="layui-form-label layui-form-label-detail">区域类型：</label>
                            <div class="layui-input-block layui-input-block-html" id="areaType" data-th-text="--">
                            </div>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <div class="layui-col-md6">
                            <label class="layui-form-label layui-form-label-detail">区域排序：</label>
                            <div class="layui-input-block layui-input-block-html" id="sort" data-th-text="--">
                            </div>
                        </div>
                        <div class="layui-col-md6">
                            <label class="layui-form-label layui-form-label-detail">区域状态：</label>
                            <div class="layui-input-block layui-input-block-html" data-th-text="--" id="status">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div class="layui-card"  id="workInfoSet">
            <blockquote class="layui-elem-quote layui-elem-quote-primary">排班信息</blockquote>
            <div class="layui-field-box" id="workInfo" style="overflow: auto">
                <div class="layui-card">
                    <div class="layui-card-header">
                        <div class="layui-form-item" style="margin-bottom: 0px;">
                            <div class="layui-col-md4">
                                <label class="layui-form-label ">班次日期：</label>
                                <div class="layui-input-block">
                                    <input type="text" name="schedulingDate" id="schedulingDate0"
                                           placeholder="请选择排班日期" autocomplete="off" class="layui-input">
                                </div>
                            </div>
                            <div name="addScheduling" id="addScheduling0" class="layui-btn layui-btn-sm" style="margin: 5px 5px 10px 10px;">
                                <em class="layui-icon">&#xe654;</em>
                            </div>
                        </div>
                    </div>
                    <div class="layui-card-body">
                        <div class="layui-row" id="schedulingDiv0">
                            <div class="layui-form-item">
                                <div class="layui-col-md4">
                                    <label class="layui-form-label  febs-form-item-require">班次名称：</label>
                                    <div class="layui-input-block layui-input-icon-container" style="position: relative">
                                        <input type="text" name="schedulingName" id="schedulingName00"
                                               placeholder="请选择排班名称" autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-col-md4">
                                    <label class="layui-form-label  febs-form-item-require">班次时间：</label>
                                    <div class="layui-input-block layui-input-icon-container" style="position: relative">
                                        <input type="text" name="schedulingTime" id="schedulingTime00"
                                               placeholder="请选择排班时间" autocomplete="off" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-col-md4">
                                    <label class="layui-form-label  febs-form-item-require">负责人：</label>
                                    <div class="layui-input-block layui-input-icon-container" style="position: relative">
                                        <input type="text" name="userId" id="userId00" class="febs-hide">
                                        <input type="text" name="userName" id="userName00" class="febs-hide ">
                                        <input type="text" name="userNo" id="userNo00" class="febs-hide ">
                                        <input type="text" name="realName" id="realName00" autocomplete="off"
                                               class="layui-input " lay-verify="required"
                                               minlength="2" maxlength="10" placeholder="请选择人员">
                                        <div class="layui-input-suffix" name="addBtn" id="addBtn00">
                                            <i class="layui-icon layui-icon-add-1"></i>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="layui-form-item febs-hide">
            <button class="layui-btn" lay-submit="" lay-filter="baseAreaScheduling-edit-form-submit"
                    id="submit"></button>
            <button type="reset" class="layui-btn" id="reset"></button>
        </div>
    </form>
</div>
</body>

<script type="text/html" id="scheduling-Type">
    <select name="scheduling-Type" lay-filter="scheduling-Type" lay-verify="required" class="sel-main-table-list"
            style="overflow: visible">
        <option value="">请选择</option>
        <option value="1">早班</option>
        <option value="2">中班</option>
        <option value="3">晚班</option>
    </select>
</script>


<script type="text/html" id="workman-option">
    <a lay-event="del" shiro:hasPermission="baseArea:delete"><em
            class="layui-icon febs-edit-area febs-red">&#xe7f9;</em></a>
</script>

<script data-th-inline="javascript">
    var baseAreaScheduling = [[${baseAreaScheduling}]];
    var baseArea = [[${baseArea}]];
    var areaList = [[${areaList}]]
</script>
<script th:src="@{/febs/js/base/baseAreaScheduling/baseAreaSchedulingEdit.js(v=1)}"></script>